<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/taglibs/iss" prefix="iss"%>
<HTML>
<HEAD>
<TITLE>MKTB15</TITLE>
<LINK href="../css/IDEA.css" type=text/css rel=stylesheet>
<SCRIPT language=javascript src="../js/IDEA_body.js"
	type=text/javascript></SCRIPT>
<script src="../js/main.js" language="javascript" type="text/javascript"></script>
<link rel="stylesheet" href="../css/validationEngine.jquery.css"
	type="text/css" />
<script src="../js/jquery-1.6.min.js" type="text/javascript"></script>
<script src="../js/languages/jquery.validationEngine-zh_CN.js"
	type="text/javascript" charset="utf-8"></script>

<script src="../My97DatePicker/WdatePicker.js" language="JavaScript"
	type="text/JavaScript"></SCRIPT>
<script src="../js/jquery.validationEngine.js" type="text/javascript"
	charset="utf-8"></script>
		<link rel="stylesheet" type="text/css"
	href="../js/window/skin/qq/ymPrompt.css" />
<SCRIPT language=javascript src="../js/window/ymPrompt_Ex.js"
	type=text/javascript></SCRIPT>
<SCRIPT language=javascript src="../js/window/ymPrompt_source.js"
	type=text/javascript></SCRIPT>

</HEAD>

<body>
<script type="text/javascript">

	function isConfirm(obj)
	{

		if(confirm('是否确认删除？'))
		{
			window.location.href="../servicecreate/delServiceApplyInfo.html?id="+obj+"&type=${type}";
		}
	}
	
	var argument="";
	var id="";
	var type="";
	
	function refuse(obj,obj2)
	{
		id=obj;
		type=obj2;
	 	ymPrompt.win({message:'../servicecreate/refuse.html',width:410,height:200,title:'请填写拒绝原因',iframe:true});
	}
	
	function setArgument(obj)
	{
		argument = obj;
		window.location.href="../servicecreate/approveService.html?id="+id+"&status=3&type="+type+"&argument="+argument;
		id="";
		argument="";
		type="";
		return;
	}
</script>
	<TABLE width="100%" height="100%" border=0 cellPadding=0 cellSpacing=0>
		<TBODY>
			<TR>
				<TD height="100%" bgcolor="#FFFFFF" class=right_bg><iss:blank />
					<table width="100%" border="0" align="center" cellpadding="0"
						cellspacing="0">
						<tr>
							<td width="20">&nbsp;</td>
							<td class="text_12_title">当前位置: <a href="#" class="blue_1">首页</a>
								&gt; <a href="#"
								class="blue_1"><c:if test="${userType eq 2}">创业导师申请</c:if><c:if
										test="${userType eq 1 or userType eq 3}">创业导师审批</c:if></a>
						</tr>
					</table>

					<table width="98%" border="0" cellpadding="0" cellspacing="0"
						background="../images/bg_body_title.jpg" class="list_border1">
						<tr>
							<td width="10">&nbsp;</td>
							<td>
								<table border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td><img src="../images/pic_title_1.jpg" name="imgL1"
											width="8" height="24" id="imgL1"></td>
										<td valign="bottom" class="text_12_border" nowrap="nowrap"
											style="cursor: hand;" id="tdTitle1"><c:if test="${userType eq 2}">创业导师申请</c:if><c:if
										test="${userType eq 1 or userType eq 3}">创业导师审批</c:if></td>
										<td><img src="../images/pic_title_2.jpg" name="imgR1"
											width="8" height="24" id="imgR1"></td>
									</tr>
								</table>
								</td>
						</tr>
					</table>
					<table width="98%" border="0" cellpadding="0" cellspacing="0"
						class="list_border2" id="table4">
						<tr>
							<td align="center" valign="top"><iss:blank />
								<form id="mainForm" name="mainForm3" method="post"
									action="../servicecreate/queryServiceApplyList.html">
									<table width="98%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td>
											<input type="hidden" name="serviceType" value="11">
											<input type="hidden" name="type" value="${type}">
											状态：&nbsp; <select name="status">
													<option value="">请选择</option>
													<option value="1"
														<c:if test="${serviceApplyBean.status eq 1}">selected</c:if>>待审批</option>
													<option value="2"
														<c:if test="${serviceApplyBean.status eq 2}">selected</c:if>>通过</option>
													<option value="2"
														<c:if test="${serviceApplyBean.status eq 2}">selected</c:if>>拒绝</option>
											</select> &nbsp; 申请日期：&nbsp; <input name="applyTime" type="text"
												class="Wdate input2" height="20" onclick="WdatePicker();"
												value="${serviceApplyBean.applyTime}" readonly>
												&nbsp; <input name="Submit" type="submit"
												class="button_normal" value="查  询"> &nbsp; <c:if
													test="${userType eq 2}">
													<input name="button" type="button" class="button_normal"
														value="申请导师"
														onclick="window.location.href='../tutor/queryTutorFront.html'">
												</c:if></td>
										</tr>
									</table>
								</form>
								<TABLE width="98%" border=0 cellPadding=0 cellSpacing=0
									class=list_border>
									<TBODY>
										<TR>
											<TD width=1 class=list_title><IMG height=27
												src="../images/pic_body_1.jpg" width=1>
											</TD>
											<TD class=list_title>导师姓名</TD>
											<TD class=list_title width="2"><IMG height=20
												src="../images/icon_line2.gif" width=2>
											</TD>
											<TD class=list_title>公司名称</TD>
											<TD class=list_title width="2"><IMG height=20
												src="../images/icon_line2.gif" width=2>
											</TD>
											<TD class=list_title>联系人</TD>
											<TD class=list_title width="2"><IMG height=20
												src="../images/icon_line2.gif" width=2>
											</TD>
											<TD class=list_title>联系电话</TD>
											<TD class=list_title width="2"><IMG height=20
												src="../images/icon_line2.gif" width=2>
											</TD>
											<TD class=list_title>备注</TD>

											<TD class=list_title width="2"><IMG height=20
												src="../images/icon_line2.gif" width=2>
											</TD>
											<TD class=list_title>需求期间</TD>

											<TD class=list_title width="2"><IMG height=20
												src="../images/icon_line2.gif" width=2>
											</TD>											
											<TD class=list_title>申请日期</TD>
											<TD class=list_title width="2"><IMG height=20
												src="../images/icon_line2.gif" width=2>
											</TD>
											<TD class=list_title>审批状态</TD>

											<TD class=list_title width="2"><IMG height=20
												src="../images/icon_line2.gif" width=2>
											</TD>
											<TD class=list_title>审批信息</TD>

											<TD class=list_title width="2"><IMG height=20
												src="../images/icon_line2.gif" width=2>
											</TD>
											<TD class=list_title>操作</TD>
											<TD width=1 class=list_title><IMG height=27
												src="../images/pic_body_1.jpg" width=1>
											</TD>
											<c:forEach var="serviceApply" items="${serviceApplyList}"
												varStatus="status">
												<TR class="list_td_white${(status.index+1)%2}">
													<TD></TD>
													<TD align="left">${serviceApply.serviceName}</TD>
													<TD></TD>
													
													<TD class="list_td" align="left">
														${serviceApply.companyName}
														</TD>
													<td></td>
													<TD class="list_td" align="left">
														${serviceApply.contacts}</TD>
													<td></td>
													<TD class="list_td" align="center">
														${serviceApply.telephone}</TD>
													<td></td>
													<TD class="list_td" align="left">
														${serviceApply.mark}</TD>
													<TD></TD>
													<TD class="list_td" align="center">
														${serviceApply.startUseTime} - ${serviceApply.endUseTime}
													</TD>
													<td></td>
													<TD align="center">${serviceApply.applyTime}</TD>
													<td></td>
													<TD align="center"><c:choose>
															<c:when test="${serviceApply.status eq 1}">
                      	待审批
                      </c:when>
															<c:when test="${serviceApply.status eq 2}">
                      	通过
                      </c:when>
															<c:when test="${serviceApply.status eq 3}">
                      	拒绝
                      </c:when>
														</c:choose></TD>

													<TD></TD>
														<TD>${serviceApply.argument}</TD>
														<TD></TD>
													<TD align="center">
															<c:if
															test="${userType eq 1 and serviceApply.status eq 1}">
															<a
																href="../servicecreate/approveService.html?id=${serviceApply.id}&status=2&type=${type}">通过</a>&nbsp;
						<a
																href="#" onclick="refuse('${serviceApply.id}','${type}')">拒绝</a>&nbsp;                       
                       										</c:if> 
                       										<c:if test="${userType eq 1 or userType eq 2}">
															<a href="#" onClick="isConfirm('${serviceApply.id}')">删除</a>
															</c:if>
															</TD>
													<td>&nbsp;</td>
												</TR>
											</c:forEach>
									</TBODY>

								</TABLE> <iss:blank /></td>
						</tr>
						<tr>
							<td>

								<table width="98%" height="24" border="0" cellpadding="0"
									cellspacing="0">
									<tr>
										<td align="right" valign="bottom"><iss:navigation
												style="0" />
										</td>
									</tr>
								</table></td>
						</tr>
					</table></TD>
			</TR>
		</TBODY>
	</TABLE>
</body>
</HTML>
